#include <stdio.h>
void Hanoi(int num, char Source, char Station, char Target)
{		
	if (1==num)		
	{
		printf("# %d : from  %c to %c \n", num,Source,Target);	
	}
	else 
	{
		Hanoi(num - 1, Source, Target, Station);	
		printf("# %d : from  %c to %c \n", num, Source, Target);	
		Hanoi(num - 1, Station, Source, Target);	
	}
}
int main()
{
	char A = 'A';
	char B = 'B';
	char C = 'C';
	int n=3;			
	Hanoi(n, 'A', 'B', 'C');
	return 0;
}
